home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / DefineSprite_618 / frame_30 / PlaceObject2_615_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  1KB  |  44 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false)
  3.    {
  4.       if(_currentframe < 93)
  5.       {
  6.          ymove++;
  7.          _Y = _Y + ymove;
  8.          if(ymove > 0 and _Y < 165)
  9.          {
  10.             _rotation = _rotation - ymove;
  11.          }
  12.          else if(ymove < 0 and _Y < 165)
  13.          {
  14.             _rotation = _rotation + ymove;
  15.          }
  16.       }
  17.       if(_Y > 165)
  18.       {
  19.          _Y = 165;
  20.          ymove = (- ymove) / 3;
  21.       }
  22.       if(_root.level.shield._visible == true and (_root.level.shield.hitTest(_X + _parent._x + _parent._parent._x + _parent._parent._parent._x - 25,_Y + _parent._y + _parent._parent._y + _parent._parent._parent._y,true) or _root.level.shield.hitTest(_X + _parent._x + _parent._parent._x + _parent._parent._parent._x + 25,_Y + _parent._y + _parent._parent._y + _parent._parent._parent._y,true)))
  23.       {
  24.          ymove = -20;
  25.       }
  26.       if(_currentframe == 93 and _Y < 50)
  27.       {
  28.          if(_X < 0)
  29.          {
  30.             _root.lefteyehurt = true;
  31.          }
  32.          if(_X > 0)
  33.          {
  34.             _root.righteyehurt = true;
  35.          }
  36.       }
  37.       play();
  38.    }
  39.    if(_root.paused == true)
  40.    {
  41.       stop();
  42.    }
  43. }
  44.